set HEXPATH=%1
set SFFS_ROOT=%cd:\=/%/
REM set SFFS_JSON=sffs.json
set SFFSIMG=%HEXPATH:\=/%/oldpac/%/sffs.img
set SFFSCMD=dtools.exe fbdevgen

cd %SFFS_ROOT%

node  "node_modules/babel-minify/bin/minify.js" .\js\lib\iot.js --outFile js\lib\iot.min.js

.\bin2carray\bin2carray.exe fsdep.c js\lib\iot.min.js
%SFFSCMD% %SFFS_JSON% %SFFSIMG%
